﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace QuanLyDiemSinhVien.Manager
{
    public class TeacherInfo
    {
        private readonly int _teacherId;
        public TeacherInfo() { }

        public TeacherInfo(DataTable dtb)
        {
            if (dtb != null && dtb.Rows.Count > 0)
            {
                _teacherId = Convert.ToInt32(Convert.ToString(dtb.Rows[0][0]));
                TeacherName = Convert.ToString(dtb.Rows[0][1]);
                Description = Convert.ToString(dtb.Rows[0][2]);
                Status = Convert.ToBoolean(Convert.ToString(dtb.Rows[0][3]));
            }
        }

        public string TeacherName { get; set; }
        public string Description { get; set; }
        public bool Status { get; set; }
    }
}
